<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
    </body>
    <script type="text/javascript">

    var str = "aodijgqpemr";

    alert(str.indexOf("zzz"));

    </script>
</html>